package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "sys_role_of_menu")
public class SysRoleOfMenu implements Serializable {

    @Id
    @Column(name = "pkid")
    private Integer pkId;

    @Column(name = "role_id")
    private Integer roleId;//角色Id

    @Column(name = "menu_id")
    private Integer menuId;

    @Column(name = "permission")
    private String permission; //具体的action,比如 add/update/list/delete其中的一种


    public Integer getPkId() {
        return pkId;
    }

    public void setPkId(Integer pkId) {
        this.pkId = pkId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
}
